// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
// 引入路由配置index.js
import router from './router'
import Vue from 'vue'
import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'babel-polyfill'
// 等价于import store from './store/index'
import store from './store'
import App from './App'
// 由npm install 引入，解决移动端300毫秒点击延迟问题
import fastClick from 'fastclick'
// 统一不同手机的样式
import './assets/styles/reset.css'
// 解决移动端屏幕像素问题
import './assets/styles/border.css'
// 图标样式
import './assets/styles/iconfont.css'
// 轮播样式
import 'swiper/dist/css/swiper.css'

Vue.config.productionTip = false
fastClick.attach(document.body)
// 使用插件的时候，都是使用Vue.use(XXX)
Vue.use(VueAwesomeSwiper)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  // 等价于store: store
  store,
  components: { App },
  template: '<App/>'
})
